import React, {useEffect} from 'react';

export default function HelloHooks(props) {
    useEffect(()=>{
        document.title=`Hello ${props.name}`
    },[props.name])

    
    return <h1>Hello, {props.name} 来自hooks</h1>
}